package cn.xfdzx.android.apps.shop.model;


import cn.xfdzx.android.apps.shop.bean.CategoryAllBeen;
import cn.xfdzx.android.apps.shop.bean.ConfirmGoodBeen;
import cn.xfdzx.android.apps.shop.bean.HomeSearchXFDGoodBeen;
import cn.xfdzx.android.apps.shop.bean.StoreInfoBeen;
import cn.xfdzx.android.apps.shop.contract.OneCategoryContract;
import cn.xfdzx.android.apps.shop.contract.StoreInfoContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import io.reactivex.Flowable;

/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */
public class StoreInfoModel implements StoreInfoContract.Model {


    @Override
    public Flowable<ConfirmGoodBeen> addCar(String is_new, String uniqueId, String productId, String cartNum) {
        return  RetrofitClient.getInstance().getApi().confirmGood(is_new,uniqueId,productId,cartNum);
    }

    @Override
    public Flowable<StoreInfoBeen> getFocusShop(String storeid) {
        return RetrofitClient.getInstance().getApi().getCollectShop(storeid);
    }

    @Override
    public Flowable<StoreInfoBeen> initData(String store_id,String sales_model) {
        return RetrofitClient.getInstance().getApi().storeInfo(store_id,sales_model);
    }
    @Override
    public Flowable<HomeSearchXFDGoodBeen> initList( String lng,  String lat,String sid, String page, String limit, String index_status, String is_store, String store_id, String keyword, String priceOrder, String salesOrder, String news) {
        return RetrofitClient.getInstance().getApi().homeSearchGoodShop(lng,lat, sid,  page,  limit,  index_status,  is_store,  store_id,  keyword,  priceOrder,  salesOrder,  news);
    }



}
